﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYQQX.SP
{
    public class Sw_yr : ISp
    {
        public override string Name => "司危·嫣然";

        public override string Desc => @"技能效果一：下一回合一定出现一个西陵角色
技能效果二：禁用对方任意一张《古剑奇谭三》珍稀牌的技能";

        public override void Got(CardGroup MyGroup, CardGroup OtGroup)
        {
            SetNextSend((cards) =>
            {
                List<string> xl = new List<string>() { "姬轩辕", "嫘祖", "缙云", "巫炤", "司危" };
                return cards.FirstOrDefault(t => xl.Contains(t.Name));
            });

            Disable(OtGroup,(name)=> 
            {
                var card = CardConfig.Instance.GetCardByName(name);
                return card.GameVersion == 3;
            });
        }
    }
}
